package com.ruoyi.web.invest.asset.asset.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 资产对象 asset
 *
 * @author feng_zi_xiang
 * @date 2021-08-27
 */
public class Asset extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 关联股票信息
     */
    private Long stockId;
    private String stockCode;
    private String stockName;
    private BigDecimal stockPrice;

    /**
     * 持有人id
     */
    @Excel(name = "持有人id")
    private Long holderId;

    /**
     * 持有人姓名
     */
    private String holderName;

    /**
     * 持有数量
     */
    @Excel(name = "持有数量")
    private Integer number;

    /**
     * 部门ID
     */
    @Excel(name = "部门ID")
    private Long deptId;

    /**
     * 创建者ID
     */
    private Long createById;

    /**
     * 更新者ID
     */
    private Long updateById;

    public Asset() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getStockId() {
        return stockId;
    }

    public void setStockId(Long stockId) {
        this.stockId = stockId;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public BigDecimal getStockPrice() {
        return stockPrice;
    }

    public void setStockPrice(BigDecimal stockPrice) {
        this.stockPrice = stockPrice;
    }

    public Long getHolderId() {
        return holderId;
    }

    public void setHolderId(Long holderId) {
        this.holderId = holderId;
    }

    public String getHolderName() {
        return holderName;
    }

    public void setHolderName(String holderName) {
        this.holderName = holderName;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getCreateById() {
        return createById;
    }

    public void setCreateById(Long createById) {
        this.createById = createById;
    }

    public Long getUpdateById() {
        return updateById;
    }

    public void setUpdateById(Long updateById) {
        this.updateById = updateById;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("holderId", getHolderId())
                .append("number", getNumber())
                .append("deptId", getDeptId())
                .append("createBy", getCreateBy())
                .append("createById", getCreateById())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateById", getUpdateById())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
